<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>uCXpresso.BLE: CPin Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../upnp.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">uCXpresso.BLE
   &#160;<span id="projectnumber">v1.0.4</span>
   </div>
   <div id="projectbrief">RTOS C++ Framework for Bluetooth Low Energy</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="../../classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="../../hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="../../functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d7/db9/class_c_pin.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../d3/d19/class_c_pin-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">CPin Class Reference<div class="ingroups"><a class="el" href="../../d1/d6c/group___peripherals.html">Peripherals</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &quot;<a class="el" href="../../db/d4e/pin_8h_source.html">class/pin.h</a>&quot;</code></p>
<div class="dynheader">
Inheritance diagram for CPin:</div>
<div class="dyncontent">
 <div class="center">
  <img src="../../d7/db9/class_c_pin.png" usemap="#CPin_map" alt=""/>
  <map id="CPin_map" name="CPin_map">
<area href="../../d9/db6/class_c_peripheral.html" alt="CPeripheral" shape="rect" coords="0,56,80,80"/>
<area href="../../dc/dac/class_c_object.html" alt="CObject" shape="rect" coords="0,0,80,24"/>
<area href="../../db/d2c/class_c_pin_i_n_t.html" alt="CPinINT" shape="rect" coords="0,168,80,192"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7338f2960b4d8992c43f3c6067742ded"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#a7338f2960b4d8992c43f3c6067742ded">CPin</a> (<a class="el" href="../../db/dff/group___enumerations.html#ga65a2241721e4acb573e0c3fe29ac432f">PIN_NAME_T</a> p)</td></tr>
<tr class="separator:a7338f2960b4d8992c43f3c6067742ded"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84cd9c4613a9b53f00e52c23b4eed050"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#a84cd9c4613a9b53f00e52c23b4eed050">output</a> (<a class="el" href="../../db/dff/group___enumerations.html#gac16e35b75166ad7286b8bb78bd244ed2">PIN_OUTPUT_MODE_T</a> mode=<a class="el" href="../../db/dff/group___enumerations.html#ggac16e35b75166ad7286b8bb78bd244ed2afd68b1a66f2a33ce77d4f6c7f8fc998a">NOT_OPEN</a>, <a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a> defValue=<a class="el" href="../../db/dff/group___enumerations.html#gga6f24594071a026b31238ab8cb80d6a80a6a226f4143ca3b18999551694cdb72a8">LOW</a>)</td></tr>
<tr class="separator:a84cd9c4613a9b53f00e52c23b4eed050"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21aa5b473c1a3637a487c7724f8b9fcf"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#a21aa5b473c1a3637a487c7724f8b9fcf">input</a> (<a class="el" href="../../db/dff/group___enumerations.html#ga9f8f32709b482732d6e377ff26da36ef">PIN_INPUT_MODE_T</a> mode=<a class="el" href="../../db/dff/group___enumerations.html#gga9f8f32709b482732d6e377ff26da36efa781a7f23ae9b0dbdc6edfdcfd3be75df">INTERNAL_PULL_UP</a>)</td></tr>
<tr class="separator:a21aa5b473c1a3637a487c7724f8b9fcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fc3486f4afea4de56ae677c20600551"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#a1fc3486f4afea4de56ae677c20600551">write</a> (<a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a> val)</td></tr>
<tr class="separator:a1fc3486f4afea4de56ae677c20600551"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02060b0c9bbf0f75dead7bef1c75ce6b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#a02060b0c9bbf0f75dead7bef1c75ce6b">read</a> ()</td></tr>
<tr class="separator:a02060b0c9bbf0f75dead7bef1c75ce6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a240de24c726724aeda90bfacf1d50cc5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#a240de24c726724aeda90bfacf1d50cc5">invert</a> ()</td></tr>
<tr class="separator:a240de24c726724aeda90bfacf1d50cc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d125bef83689d0f1db13b3f1acbd05e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#a7d125bef83689d0f1db13b3f1acbd05e">operator=</a> (<a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a> val)</td></tr>
<tr class="separator:a7d125bef83689d0f1db13b3f1acbd05e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01428eca1b98e2e194bd0848b3eb8904"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#a01428eca1b98e2e194bd0848b3eb8904">operator=</a> (<a class="el" href="../../d7/db9/class_c_pin.html">CPin</a> &amp;pin)</td></tr>
<tr class="separator:a01428eca1b98e2e194bd0848b3eb8904"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9037649d1e88192f5fde46b810c71299"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#a9037649d1e88192f5fde46b810c71299">operator PIN_LEVEL_T</a> ()</td></tr>
<tr class="separator:a9037649d1e88192f5fde46b810c71299"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ec08fca85a5f9472e82588a6a895b8f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#a5ec08fca85a5f9472e82588a6a895b8f">operator!</a> ()</td></tr>
<tr class="separator:a5ec08fca85a5f9472e82588a6a895b8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9f57493334eeb6e69a77a0cf4e50f95"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#ae9f57493334eeb6e69a77a0cf4e50f95">operator==</a> (<a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a> val)</td></tr>
<tr class="separator:ae9f57493334eeb6e69a77a0cf4e50f95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae98a7d34d72ccc58b6d799f7ad2e12e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#aae98a7d34d72ccc58b6d799f7ad2e12e">operator!=</a> (<a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a> val)</td></tr>
<tr class="separator:aae98a7d34d72ccc58b6d799f7ad2e12e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e6cdf81b6a8869e3c1e78dffb6ddca5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#ga65a2241721e4acb573e0c3fe29ac432f">PIN_NAME_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_pin.html#a5e6cdf81b6a8869e3c1e78dffb6ddca5">name</a> ()</td></tr>
<tr class="separator:a5e6cdf81b6a8869e3c1e78dffb6ddca5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a76c241a4d62d2efdac57d2cfe4c0f"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dac/class_c_object.html#a26a76c241a4d62d2efdac57d2cfe4c0f">isThread</a> ()</td></tr>
<tr class="separator:a26a76c241a4d62d2efdac57d2cfe4c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Pin define class </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d5/df3/_2ble_2ble_multiple_2src_2main_8cpp-example.html#_a18">/ble/ble_multiple/src/main.cpp</a>, <a class="el" href="../../d7/d19/_2ble_2ble_proximity_2src_2main_8cpp-example.html#_a0">/ble/ble_proximity/src/main.cpp</a>, <a class="el" href="../../db/de1/_2misc_2garbage_collector_2src_2main_8cpp-example.html#_a5">/misc/garbage_collector/src/main.cpp</a>, <a class="el" href="../../d9/da4/_2peripheral_2power_2src_2main_8cpp-example.html#_a0">/peripheral/power/src/main.cpp</a>, <a class="el" href="../../d1/d0a/_2peripheral_2uart_2src_2main_8cpp-example.html#_a3">/peripheral/uart/src/main.cpp</a>, and <a class="el" href="../../da/da9/_2rtos_2blink_thread_2src_2main_8cpp-example.html#_a2">/rtos/blink_thread/src/main.cpp</a>.</dd>
</dl></div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a7338f2960b4d8992c43f3c6067742ded"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPin::CPin </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/dff/group___enumerations.html#ga65a2241721e4acb573e0c3fe29ac432f">PIN_NAME_T</a>&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructs a <a class="el" href="../../d7/db9/class_c_pin.html">CPin</a> object to connect to the specified pin. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>is a PIN_NAME_T enumeration to a pin of peripheral.</td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line">Example:</div>
<div class="line">        <a class="code" href="../../d7/db9/class_c_pin.html">CPin</a> key(<a class="code" href="../../db/dff/group___enumerations.html#gga65a2241721e4acb573e0c3fe29ac432fa19b235491a16a3e7f91872f46a33a4a6">P21</a>);      <span class="comment">// Create a key object to connect to pin 21.</span></div>
<div class="line">        key.input();        <span class="comment">// set the key object as a input.</span></div>
<div class="line"></div>
<div class="line">        <span class="keywordflow">if</span> ( key==<a class="code" href="../../db/dff/group___enumerations.html#gga6f24594071a026b31238ab8cb80d6a80a6a226f4143ca3b18999551694cdb72a8">LOW</a> ) {   <span class="comment">// check the pin level</span></div>
<div class="line">        ...</div>
<div class="line">        }</div>
</div><!-- fragment --> 
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a21aa5b473c1a3637a487c7724f8b9fcf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CPin::input </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/dff/group___enumerations.html#ga9f8f32709b482732d6e377ff26da36ef">PIN_INPUT_MODE_T</a>&#160;</td>
          <td class="paramname"><em>mode</em> = <code><a class="el" href="../../db/dff/group___enumerations.html#gga9f8f32709b482732d6e377ff26da36efa781a7f23ae9b0dbdc6edfdcfd3be75df">INTERNAL_PULL_UP</a></code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set as an input pin </p>
<div class="fragment"><div class="line"><a class="code" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a> level;</div>
<div class="line"><a class="code" href="../../d7/db9/class_c_pin.html">CPin</a> myPin(<a class="code" href="../../db/dff/group___enumerations.html#gga65a2241721e4acb573e0c3fe29ac432fa61f13c350e3003e8df7d8001bb015b19">P19</a>);</div>
<div class="line">myPin.input();      <span class="comment">// Set the P19 as an input pin. (with default INTERNAL_PULL_UP feature)</span></div>
<div class="line"><span class="keywordflow">if</span> ( myPin==<a class="code" href="../../db/dff/group___enumerations.html#gga6f24594071a026b31238ab8cb80d6a80a0c3a1dacf94061154b3ee354359c5893">HIGH</a> ) {    <span class="comment">// Read a pin level from myPin. (use the operator &#39;==&#39;)</span></div>
<div class="line">        ...</div>
<div class="line">}</div>
<div class="line">level = myPin;      <span class="comment">// Read a pin level from myPin. (use the operator &#39;=&#39;)</span></div>
<div class="line">level = myPin.read();<span class="comment">// Read a pin level from myPin. (use the read() member)</span></div>
</div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>is a PIN_INPUT_MODE_T enumeration to indicat the input mode. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a240de24c726724aeda90bfacf1d50cc5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CPin::invert </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Invert an output pin. </p>
<div class="fragment"><div class="line"><a class="code" href="../../d7/db9/class_c_pin.html">CPin</a> myPin(<a class="code" href="../../db/dff/group___enumerations.html#gga65a2241721e4acb573e0c3fe29ac432fa61f13c350e3003e8df7d8001bb015b19">P19</a>);</div>
<div class="line">myPin.output();</div>
<div class="line"></div>
<div class="line"><span class="keywordflow">while</span>(1) {</div>
<div class="line">        myPin.invert(); <span class="comment">// Invert the output pin level. (use the invert() member)</span></div>
<div class="line"><span class="comment">//   myPin = !myPin; // Invert the output pin level. (use the &#39;!&#39; operator)</span></div>
<div class="line">        sleep(100);</div>
<div class="line">}</div>
</div><!-- fragment --> 
</div>
</div>
<a class="anchor" id="a26a76c241a4d62d2efdac57d2cfe4c0f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool CObject::isThread </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Check current object that inherits from <a class="el" href="../../d0/d26/class_c_thread.html">CThread</a> class or not. </p>
<dl class="section note"><dt>Note</dt><dd>The isTherad() will be override by <a class="el" href="../../d0/d26/class_c_thread.html">CThread</a> class. </dd></dl>

<p>Reimplemented in <a class="el" href="../../d0/d26/class_c_thread.html#ab2513fd0fcad30e2e6605609c91f1984">CThread</a>.</p>

</div>
</div>
<a class="anchor" id="a5e6cdf81b6a8869e3c1e78dffb6ddca5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#ga65a2241721e4acb573e0c3fe29ac432f">PIN_NAME_T</a> CPin::name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Call the <a class="el" href="../../d7/db9/class_c_pin.html#a5e6cdf81b6a8869e3c1e78dffb6ddca5">name()</a> member to retrieve the Pin Name of Object </p>
<dl class="section return"><dt>Returns</dt><dd>PIN_NAME_T name </dd></dl>

</div>
</div>
<a class="anchor" id="a9037649d1e88192f5fde46b810c71299"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CPin::operator <a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a5ec08fca85a5f9472e82588a6a895b8f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a> CPin::operator! </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aae98a7d34d72ccc58b6d799f7ad2e12e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d7/db9/class_c_pin.html#a5ec08fca85a5f9472e82588a6a895b8f">CPin::operator!</a>= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a>&#160;</td>
          <td class="paramname"><em>val</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a7d125bef83689d0f1db13b3f1acbd05e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CPin::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a>&#160;</td>
          <td class="paramname"><em>val</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a01428eca1b98e2e194bd0848b3eb8904"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CPin::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d7/db9/class_c_pin.html">CPin</a> &amp;&#160;</td>
          <td class="paramname"><em>pin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae9f57493334eeb6e69a77a0cf4e50f95"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CPin::operator== </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a>&#160;</td>
          <td class="paramname"><em>val</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a84cd9c4613a9b53f00e52c23b4eed050"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CPin::output </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/dff/group___enumerations.html#gac16e35b75166ad7286b8bb78bd244ed2">PIN_OUTPUT_MODE_T</a>&#160;</td>
          <td class="paramname"><em>mode</em> = <code><a class="el" href="../../db/dff/group___enumerations.html#ggac16e35b75166ad7286b8bb78bd244ed2afd68b1a66f2a33ce77d4f6c7f8fc998a">NOT_OPEN</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a>&#160;</td>
          <td class="paramname"><em>defValue</em> = <code><a class="el" href="../../db/dff/group___enumerations.html#gga6f24594071a026b31238ab8cb80d6a80a6a226f4143ca3b18999551694cdb72a8">LOW</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the pin as an output pin. </p>
<div class="fragment"><div class="line"><a class="code" href="../../d7/db9/class_c_pin.html">CPin</a> myPin(<a class="code" href="../../db/dff/group___enumerations.html#gga65a2241721e4acb573e0c3fe29ac432fa61f13c350e3003e8df7d8001bb015b19">P19</a>);</div>
<div class="line">myPin.output();     <span class="comment">// set the P19 as an output pin. (use the default NOT_OPEN and LOW level output)</span></div>
<div class="line">myPin = <a class="code" href="../../db/dff/group___enumerations.html#gga6f24594071a026b31238ab8cb80d6a80a0c3a1dacf94061154b3ee354359c5893">HIGH</a>;       <span class="comment">// set P19 to HIGH (use the operator &#39;=&#39;)</span></div>
<div class="line">myPin.write(<a class="code" href="../../db/dff/group___enumerations.html#gga6f24594071a026b31238ab8cb80d6a80a6a226f4143ca3b18999551694cdb72a8">LOW</a>);   <span class="comment">// set P19 to LOW  (use the write() member)</span></div>
</div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>is a PIN_OUT_MODE_T enumeration to indicate the output mode. </td></tr>
    <tr><td class="paramname">defValue</td><td>is a PIN_LEVEL_T enumeration to set the default level for the output pin. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a02060b0c9bbf0f75dead7bef1c75ce6b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a> CPin::read </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Read a Pin Level from the input pin. </p>
<dl class="section return"><dt>Returns</dt><dd>PIN_LEVEL_T is HIGH (or LOW) enumeration. </dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="../../d7/db9/class_c_pin.html#a21aa5b473c1a3637a487c7724f8b9fcf">input</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1fc3486f4afea4de56ae677c20600551"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CPin::write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/dff/group___enumerations.html#ga6f24594071a026b31238ab8cb80d6a80">PIN_LEVEL_T</a>&#160;</td>
          <td class="paramname"><em>val</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Write a Pin Level to the output pin. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">val</td><td>is a PIN_LEVEL_T enumeration to write to the output pin. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="../../d7/db9/class_c_pin.html#a84cd9c4613a9b53f00e52c23b4eed050">output</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/db9/class_c_pin.html">CPin</a></li>
    <li class="footer">Generated on Fri Apr 11 2014 23:43:26 for uCXpresso.BLE by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
